
public class Demo2 {

	public static void main(String[] args) {
		
		int [] arr2= {9,8,7,6,4,3,2,1,5};
		
		for(int i=0;i<arr2.length;i++) {
			for(int x=0;x<	arr2.length-1-i;x++) {
				if(arr2[x]<arr2[x+1]) {
					int index;
					index=arr2[x];
					arr2[x]=arr2[x+1];
					arr2[x+1]=index;
				}
			}
		}
		for(int y=0;y<arr2.length;y++) {
			System.out.print(arr2[y]);
			System.out.print("|");
}
	}

}
